/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.ec.tmall.remote.RemoteTmallService
   Module Description   :

   Date Created      : 2011/10/17
   Original Author   : feeling.wang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.ec.tmall.remote;

import java.util.Date;

import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 * @author feeling.wang
 * 
 */
@WebService(serviceName = "remoteTmallService")
public interface RemoteTmallService {
	/**
	 * 全量下载
	 * 
	 * @param start 开始时间 ,default 目前时间往前推24小时
	 * @param end 结束时间,目前时间
	 * @param status ,default TRADE_FINISHED 交易成功
	 * @param page 页数
	 * @return
	 */
	@WebMethod
	public String getTrades(Date start, Date end, String status, int page);

	/**
	 * 取得订单交易资讯
	 * 
	 * @param tid 淘宝商成的订单交易序号
	 * @return
	 */
	@WebMethod
	public String getTrade(String tid);

	/**
	 * 增量下载订单
	 * 
	 * @param start 开始时间,default 1小时5分前已交易成功的订单
	 * @param end 结束时间,default 1小时前已交易成功的订单
	 * @param status ,default TRADE_FINISHED 交易成功
	 * @return
	 */
	@WebMethod
	public String tradesSoldIncrementGet(Date start, Date end, String status);

	/**
	 * 上传备注
	 * 
	 * @param start 开始时间
	 * @param end 结束时间
	 * @return
	 */
	@WebMethod
	public String tradesMemoAdd(Date start, Date end);

	@WebMethod
	public boolean setDebug(boolean debug);

	@WebMethod
	public boolean isDebug();

}
